/***************************************************************
|	File:		BitmapFont.h
|	Author:		Spencer Hawkins
|	Course:		SGD 1403
|	Purpose:	BitmapFont class draws text using an image
|				of fixed-size character glyphs
***************************************************************/

#pragma once

#include "../SGD Wrappers/SGD_Handle.h"
#include "../SGD Wrappers/SGD_Color.h"
#include "../SGD Wrappers/SGD_Geometry.h"

class BitmapFont
{
public:
	BitmapFont() = default;
	~BitmapFont() = default;

	/**********************************************************/
	// Initialize & Terminate
	bool Initialize(const char* xmlFilePath, const char* graphicsFont);	// should have parameters
	void Terminate(void);

	/**********************************************************/
	// Draw
	void Draw(const char* output, int x, int y,
		float scale, SGD::Color color) const;

private:
	/**********************************************************/
	// image
	SGD::HTexture m_hImage = SGD::INVALID_HANDLE; 

	SGD::Rectangle m_rCells[256];
	int yOffsets[256]; 

};

